import request from '@/utils/request'
import store from '@/store'

const customer_id = store.getters.customer_id
export function getList(query) {
  return request({
    url: '/access-limit/' + customer_id,
    method: 'get',
    params: query
  })
}

export function detail(id) {
  return request({
    url: `/access-limit-info/${id}`,
    method: 'get'
  })
}

export function create(data) {
  data.customer_id = customer_id
  return request({
    url: '/access-limit/new',
    method: 'post',
    data
  })
}
